package org.link.bean;


/**
 * 
 * project_name:forumweb
 * package_name:org.link.bean
 * file_name:Board.java
 * @author Link
 * create_date:2015年10月22日 上午10:18:17
 * modified_date:
 * description: 板块表实体类
 *
 */
public class Board {

	private int id;				//板块id号
	private String name;		//板块名称
	private String desc;		//板块描述
	private int pid;			//父板块id号
	private String addTime;		//添加板块时间
	
	public Board() {			//无參构造方法
		super();
	}
	
	public Board(int id, String name, String desc, int pid, String addTime) {		//全參构造方法
		super();
		this.id = id;
		this.name = name;
		this.desc = desc;
		this.pid = pid;
		this.addTime = addTime;
	}

	public Board(String name, String desc, int pid, String addTime) {		//无逻辑id号的构造方法
		super();
		this.name = name;
		this.desc = desc;
		this.pid = pid;
		this.addTime = addTime;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public String getAddTime() {
		return addTime;
	}

	public void setAddTime(String addTime) {
		this.addTime = addTime;
	}

	@Override
	public String toString() {
		return "Board [id=" + id + ", name=" + name + ", desc=" + desc
				+ ", pid=" + pid + ", addTime=" + addTime + "]";
	}
	
}
